<!DOCTYPE html>
<html lang="en">
    
    <?php $this->load->view('general/header'); ?>
    
    <body>
        <?php $this->load->view('general/logo'); ?>
        <div class="container-fluid">
            <div class="row-fluid" id="listaCursos">
                <div style='overflow:scroll; height:450px'>
                    <table class='table'>
                        <thead>
                            <tr>
                                <th>N°</th>
                                <th>CICLO</th> 
                                <th>NOMBRE CURSO</th> 
                                <th>CODIGO CURSO</th> 
                                <th>CODIGO HORARIO</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $cont = 0;
                            foreach ($cursos as $curso) { 
                                $cont = $cont +1; ?>
                                <tr class="tr_hover_nothing" onmouseover='this.className="tr_hover_color"' onmouseout='this.className="tr_hover_nothing"'>
                                    <td align='center' valign='middle'><?php echo $cont; ?></td>
                                    <td align='center' valign='middle' style='display:none'><input id=id1_<?php echo $cont ?> value=<?php echo $curso->idCiclo; ?> ></td>
                                    <td align='center' valign='middle' style='display:none'><input id=id2_<?php echo $cont ?> value=<?php echo $curso->idCurso; ?> ></td>
                                    <td align='center' valign='middle' style='display:none'><input id=id3_<?php echo $cont ?> value=<?php echo $curso->idHorario; ?> ></td>
                                    <td align='center' valign='middle' style='display:none'><input id=id4_<?php echo $cont ?> value="<?php echo $curso->NBRCURSO; ?>" ></td>
                                    <td align='center' valign='middle'><?php echo $curso->CICLO; ?></td>
                                    <td align='center' valign='middle'><?php echo $curso->NBRCURSO; ?></td>
                                    <td align='center' valign='middle'><?php echo $curso->CODCURSO; ?></td>
                                    <td align='center' valign='middle'><?php echo $curso->CODHORARIO; ?></td>
                                    <td align='center' valign='middle'><a class='btn btn-success' onclick="ingresar_curso(<?php echo $cont ?>);" >Ingresar</a></td>
                                </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <hr>
        <?php $this->load->view('general/footer'); ?>
    </body>
    
</html>